package deng.hibernate.test.boolean_;

public class Simple {

	private Long id;
	
	private boolean booleanFlag;
	
	private Boolean booleanFlag2;
	
	private Boolean trueFalseFlag; // uppercase T/F

	// This would need a custom UserType to do this.
	//
	//private Boolean trueFalseFlag2; // lowercase t/f
	
	
	private Boolean yesNoFlag;

	// See https://forum.hibernate.org/viewtopic.php?p=2362554
	private Boolean nullableFlag;
	public Boolean getNullableFlag() {
		return nullableFlag == null ? false : nullableFlag;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public boolean isBooleanFlag() {
		return booleanFlag;
	}
	public void setBooleanFlag(boolean booleanFlag) {
		this.booleanFlag = booleanFlag;
	}
	public Boolean getBooleanFlag2() {
		return booleanFlag2;
	}
	public void setBooleanFlag2(Boolean booleanFlag2) {
		this.booleanFlag2 = booleanFlag2;
	}
	public Boolean getTrueFalseFlag() {
		return trueFalseFlag;
	}
	public void setTrueFalseFlag(Boolean trueFalseFlag) {
		this.trueFalseFlag = trueFalseFlag;
	}
	public Boolean getYesNoFlag() {
		return yesNoFlag;
	}
	public void setYesNoFlag(Boolean yesNoFlag) {
		this.yesNoFlag = yesNoFlag;
	}
	public void setNullableFlag(Boolean nullableFlag) {
		this.nullableFlag = nullableFlag;
	}
	
	
}
